home *** CD-ROM | disk | FTP | other *** search
- function mSetAngle(intAngle)
- {
- if(this.intCnt == 0)
- {
- this.mSetPose("surfing");
- }
- var increment = 6.283185307179586 / this.intSteps;
- var step = Math.round(intAngle / increment);
- step %= this.intSteps - 1;
- if(step < 0)
- {
- step = 32 + step;
- }
- if(this._parent.strMode == "surfing")
- {
- this.gotoAndStop("surfing" + step);
- }
- if(this._parent.strMode == "paddling")
- {
- this.gotoAndStop("paddling");
- }
- if(this._parent.strMode == "hit")
- {
- this.gotoAndStop("hit" + step);
- }
- if(this._parent.strMode == "fall")
- {
- this.gotoAndStop("fall");
- }
- this.intCnt--;
- }
- function mSetPose(strPose)
- {
- this._parent.strMode = strPose;
- if(strPose == "hit")
- {
- this.intCnt = 5;
- }
- }
- this.intSteps = 32;
- stop();
- this.intCnt = -1;
- this.hexColorRopa = this._parent.hexColorRopa;
- this.hexColorTabla = this._parent.hexColorTabla;
-